package blog.service.client.impl;

import blog.dao.client.ReportClientMapper;
import blog.entity.Report;
import blog.service.back.ReportBackService;
import blog.service.client.ReportClientService;
import blog.vo.client.AddReportVO;
import cn.hutool.core.bean.BeanUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 　　* @description: TODO
 * 　　* @param
 * 　　* @return
 * 　　* @throws
 * 　　* @author Administrator
 * 　　* @date $ $
 *
 */
@Service
public class ReportClientServiceImpl implements ReportClientService {
    @Autowired
    private ReportClientMapper reportClientMapper;

    @Override
    public int addReport(AddReportVO addReportVO) {
        Report report = BeanUtil.copyProperties(addReportVO, Report.class);
        return reportClientMapper.addReport(report);
    }

}
